﻿namespace Shop.Model.Dto.Goo;

/// <summary>
/// 商品运费参数
/// </summary>
public class CalculateDeliveryCostDto
{
    /// <summary>
    /// 收货地址省
    /// </summary>
    public string ProvinceCode { get; set; }
    
    /// <summary>
    /// 收货地址市
    /// </summary>
    public string CityCode { get; set; }
    
    /// <summary>
    /// 收货地址区
    /// </summary>
    public string DistrictCode { get; set; }
    
    /// <summary>
    /// 商品集合
    /// </summary>
    public List<DeliveryGoodsDto> Goods { get; set; }
}

public class DeliveryGoodsDto
{
    /// <summary>
    /// 商品Id
    /// </summary>
    public long GoodsId { get; set; }
    
    /// <summary>
    /// 订单商品总金额
    /// </summary>
    public decimal Total { get; set; }
    
    /// <summary>
    /// 订单商品数量
    /// </summary>
    public int Count { get; set; }
}